package pack21;

class A121
{
	int a=10;
	int c=11;
	void show()
	{
		System.out.println("A121 show()");
	}
}
class A122 extends A121
{
	int a=20;
	int b=21;
	void show()
	{
		System.out.println("A122 show()");
	}
}
public class Program12 extends A122 {
public static void main(String[] args) {
 
	A121 ref1=new A121();
	A122 ref2=new A122();
	/*System.out.println(ref1.a);
	System.out.println(ref1.c);
	System.out.println(ref2.a);
	System.out.println(ref2.b);*/
	System.out.println(ref2.a);

	}

}
